﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AjaxSnippets.WebApplicationExample
{
    public class TestControl : ScriptControl
    {    
        protected override IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            ScriptControlDescriptor descriptor = new ScriptControlDescriptor("SnippetSampleApp.TestControl", this.ClientID);
            yield return descriptor;
        }

        protected override IEnumerable<ScriptReference> GetScriptReferences()
        {
            yield return new ScriptReference("AjaxSnippets.WebApplicationExample.Controls.TestControl.js", this.GetType().Assembly.FullName);
        }
    }
}
